package com.arpa.ntocc.common.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 用户交易记录表
 * </p>
 *
 * @author LEO
 * @since 2019-12-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("base_shipment_paid_record")
@ApiModel(value="ShipmentPaidRecord对象", description="用户交易记录表")
public class ShipmentPaidRecord extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "uuid")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "网点编码")
    @TableField("branch_code")
    private String branchCode;

    @ApiModelProperty(value = "用户编码")
    @TableField("user_code")
    private String userCode;

    @ApiModelProperty(value = "用户名称")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "用户手机号")
    @TableField("user_phone")
    private String userPhone;

    @ApiModelProperty(value = "用户类型：0司机，1货主")
    @TableField("user_party_type")
    private Integer userPartyType;

    @ApiModelProperty(value = "订单编码")
    @TableField("order_code")
    private String orderCode;

    @ApiModelProperty(value = "默认0在线支付，1现金支付")
    @TableField("paid_line_type")
    private String paidLineType;

    @ApiModelProperty(value = "消费项目(0-充值，1-保证金 2-运费 3-保费 4-罚款 5-提现 6-信息费)")
    @TableField("paid_item")
    private String paidItem;

    @ApiModelProperty(value = "货源单编码")
    @TableField("main_order_code")
    private String mainOrderCode;

    @ApiModelProperty(value = "货源单号")
    @TableField("main_order_number")
    private String mainOrderNumber;

    @ApiModelProperty(value = "运输单编码")
    @TableField("order_detail_code")
    private String orderDetailCode;

    @ApiModelProperty(value = "运输单号")
    @TableField("order_detail_number")
    private String orderDetailNumber;

    @ApiModelProperty(value = "收入(0) or 支出(1)")
    @TableField("paid_fee_type")
    private String paidFeeType;

    @ApiModelProperty(value = "金额")
    @TableField("paid_amount")
    private BigDecimal paidAmount;

    @TableField("paid_remark")
    private String paidRemark;

    @ApiModelProperty(value = "账户金额")
    @TableField("account_amount")
    private BigDecimal accountAmount;

    @ApiModelProperty(value = "冻结金额")
    @TableField("freeze_amount")
    private BigDecimal freezeAmount;

    @ApiModelProperty(value = "所属网点")
    @TableField("create_by_branch")
    private String createByBranch;

    @ApiModelProperty(value = "业务员")
    @TableField("business_person")
    private String businessPerson;


}
